package su.validator;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import lombok.extern.slf4j.Slf4j;

@SpringBootApplication(scanBasePackages = "su.validator")
@Slf4j
@EnableAspectJAutoProxy// 添加之后 切面生效，才会执行拦截器的 的 invoke
public class Application {

    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);
        log.info(">> start success....");

    }

    /**

     https://docs.spring.io/spring-framework/reference/core/validation/beanvalidation.html
     https://zhuanlan.zhihu.com/p/370639225

     aop

     */

}
